import request from '@/utils/request'

export const getCode = (params) => {
  return request({
    method: 'GET',
    url: '/captcha',
    params,
    responseType: 'blob'
  })
}

export const login = (data) => {
  return request({
    method: 'POST',
    url: '/login',
    data
  })
}
